package com.onlinesshop.mall.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * 用户信息表
 */
public class User implements Serializable {
    private int id;       //id 主键
    private String username;  //用户名
    private String password;  //登入密码
    private int status;       //状态
    private String email;       //邮箱
    private String statusStr;   //状态形式 0-开启 1-停用
    private String phone;       //电话号码
    private int gender;            //性别
    private int role;           //角色 0-普通用户 1-管理员
    private String create_time; //注册时间
    private String update_time; //更新时间
    private List<PayInfo> payInfos;   //支付信息
    private List<ShopCart> shopCarts;   //购物车
    private List<Order> orders;         //订单信息
    private List<OrderItem> orderItems; //订单明细表

    public List<PayInfo> getPayInfos() {
        return payInfos;
    }

    public void setPayInfos(List<PayInfo> payInfos) {
        this.payInfos = payInfos;
    }

    public List<ShopCart> getShopCarts() {
        return shopCarts;
    }

    public void setShopCarts(List<ShopCart> shopCarts) {
        this.shopCarts = shopCarts;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public List<Order> getOrders() {
        return orders;
    }

    public void setOrders(List<Order> orders) {
        this.orders = orders;
    }

    public List<OrderItem> getOrderItems() {
        return orderItems;
    }

    public void setOrderItems(List<OrderItem> orderItems) {
        this.orderItems = orderItems;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getStatusStr() {
        return statusStr;
    }

    public void setStatusStr(String statusStr) {

        this.statusStr = statusStr;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int sex) {
        this.gender = sex;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", status=" + status +
                ", email='" + email + '\'' +
                ", statusStr='" + statusStr + '\'' +
                ", phone='" + phone + '\'' +
                ", gender=" + gender +
                ", role=" + role +
                ", create_time='" + create_time + '\'' +
                ", update_time='" + update_time + '\'' +
                ", payInfos=" + payInfos +
                ", shopCarts=" + shopCarts +
                ", orders=" + orders +
                ", orderItems=" + orderItems +
                '}';
    }
}
